//
//  Date+wj_Date.swift
//  通知--swfit
//
//  Created by wsj on 17/8/9.
//  Copyright © 2017年 wsj. All rights reserved.
//

import UIKit

extension Date
{
    static func nowTime(_ dateFormat : String = "YYYY-MM-dd HH:mm:ss")->String{
        let formatter = DateFormatter.init();
        
        formatter.dateFormat = dateFormat;
        
        let date = Date.init();
        
        return formatter.string(from: date);
    }
}
